include $(top_builddir)/misc/Makefile.plugins
include $(top_srcdir)/misc/Makefile.common

AM_CFLAGS  = $(DEFAULT_OCFLAGS) $(VISIBILITY_FLAG)
AM_LDFLAGS = $(xineplug_ldflags)

if ENABLE_FAAD
if !WITH_EXTERNAL_FAAD
noinst_LTLIBRARIES = libfaad.la
endif
endif

libfaad_la_SOURCES = \
	bits.c \
	cfft.c \
	common.c \
	decoder.c \
	drc.c \
	drm_dec.c \
	error.c \
	filtbank.c \
	hcr.c \
	huffman.c \
	ic_predict.c \
	is.c \
	lt_predict.c \
	mdct.c \
	mp4.c \
	ms.c \
	output.c \
	pns.c \
	ps_dec.c \
	ps_syntax.c \
	pulse.c \
	rvlc.c \
	sbr_dct.c \
	sbr_dec.c \
	sbr_e_nf.c \
	sbr_fbt.c \
	sbr_hfadj.c \
	sbr_hfgen.c \
	sbr_huff.c \
	sbr_qmf.c \
	sbr_syntax.c \
	sbr_tf_grid.c \
	specrec.c \
	ssr.c \
	ssr_fb.c \
	ssr_ipqf.c \
	syntax.c \
	tns.c \
	analysis.h \
	bits.h \
	cfft.h \
	cfft_tab.h \
	common.h \
	drc.h \
	drm_dec.h \
	error.h \
	filtbank.h \
	fixed.h \
	huffman.h \
	ic_predict.h \
	is.h \
	iq_table.h \
	kbd_win.h \
	lt_predict.h \
	mdct.h \
	mdct_tab.h \
	mp4.h \
	ms.h \
	output.h \
	pns.h \
	ps_dec.h \
	ps_tables.h \
	pulse.h \
	rvlc.h \
	sbr_dct.h \
	sbr_dec.h \
	sbr_e_nf.h \
	sbr_fbt.h \
	sbr_hfadj.h \
	sbr_hfgen.h \
	sbr_huff.h \
	sbr_noise.h \
	sbr_qmf.h \
	sbr_qmf_c.h \
	sbr_syntax.h \
	sbr_tf_grid.h \
	sine_win.h \
	specrec.h \
	ssr.h \
	ssr_fb.h \
	ssr_ipqf.h \
	ssr_win.h \
	structs.h \
	syntax.h \
	tns.h \
	neaacdec.h \
	codebook/hcb.h \
	codebook/hcb_1.h \
	codebook/hcb_2.h \
	codebook/hcb_3.h \
	codebook/hcb_4.h \
	codebook/hcb_5.h \
	codebook/hcb_6.h \
	codebook/hcb_7.h \
	codebook/hcb_8.h \
	codebook/hcb_9.h \
	codebook/hcb_10.h \
	codebook/hcb_11.h \
	codebook/hcb_sf.h 

libfaad_la_CFLAGS = $(AM_CFLAGS)

libfaad_la_LIBADD = -lm
